_addProvider: function(fileName) {
let path = global.datadir + '/search_providers/' + fileName;
let source = Shell.get_file_contents_utf8_sync(path);
- let [success, name, url, langs, icon_uri] = global.parse_search_provider(source);
+ let [success, name, url, langs, icon_uri] = Shell.parse_search_provider(source);
let provider ={ name: name,
url: url,
id: this._providers.length,
}
/**
- * shell_global_breakpoint:
- * @global: A #ShellGlobal
+ * shell_breakpoint:
*
* Using G_BREAKPOINT(), interrupt the current process. This is useful
* in conjunction with a debugger such as gdb.
*/
void
-shell_global_breakpoint (ShellGlobal *global)
+shell_breakpoint (void)
{
G_BREAKPOINT ();
}
/**
- * shell_global_parse_search_provider:
- * @global: A #ShellGlobal
+ * shell_parse_search_provider:
* @data: description of provider
* @name: (out): location to store a display name
* @url: (out): location to store template of url
* Returns: %TRUE on success
*/
gboolean
-shell_global_parse_search_provider (ShellGlobal *global,
- const char *data,
- char **name,
- char **url,
- GList **langs,
- char **icon_data_uri,
- GError **error)
+shell_parse_search_provider (const char *data,
+ char **name,
+ char **url,
+ GList **langs,
+ char **icon_data_uri,
+ GError **error)
{
xmlDocPtr doc = xmlParseMemory (data, strlen(data));
xmlNode *root;
void shell_global_reexec_self (ShellGlobal *global);
-void shell_global_breakpoint (ShellGlobal *global);
-
-gboolean shell_global_parse_search_provider (ShellGlobal *global,
- const char *data,
- char **name,
- char **url,
- GList **langs,
- char **icon_data_uri,
- GError **error);
+void shell_breakpoint (void);
+
+gboolean shell_parse_search_provider (const char *data,
+ char **name,
+ char **url,
+ GList **langs,
+ char **icon_data_uri,
+ GError **error);
void shell_global_gc (ShellGlobal *global);